package com.onec.service.gateway.service.impl;

import com.onec.service.api.dto.response.customer.MerchantResp;
import com.onec.service.api.service.customer.MerchantInfoApiService;
import com.onec.service.gateway.service.AuthorizeService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author onec
 */
@Service
public class AuthorizeServiceImpl implements AuthorizeService {


    @DubboReference(version = "1.0.1", timeout = 60000)
    private MerchantInfoApiService merchantInfoApiService;

    @Override
    public List<MerchantResp> getMerchantInfo(int pageNo, int pageSize) {
        return merchantInfoApiService.getListMerchant(pageNo, pageSize);
    }
}
